package com.cskaoyan.wordmemorize.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cskaoyan.wordmemorize.dao.entity.ReviewTopicDO;
import com.cskaoyan.wordmemorize.dao.entity.SingleTopic;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ReviewTopicMapper extends BaseMapper<ReviewTopicDO> {
 List<SingleTopic> selectSingleTopicList(@Param("categoryId") String categoryId,
                                         @Param("bookId") String bookId,
                                         @Param("chapterId") String chapterId,
                                         @Param("keyword") String keyword,
                                         @Param("start") Integer start,
                                         @Param("count") Integer count);
 Long selectSingleTotal(@Param("categoryId") String categoryId,
                           @Param("bookId") String bookId,
                           @Param("chapterId") String chapterId,
                        @Param("keyword") String keyword);
 List<Long> selectFillWordList(@Param("categoryId") String categoryId,
                                         @Param("bookId") String bookId,
                                         @Param("chapterId") String chapterId,
                                         @Param("keyword") String keyword,
                                         @Param("start") Integer start,
                                         @Param("count") Integer count);
 Long selectFillWordTotal(@Param("categoryId") String categoryId,
                           @Param("bookId") String bookId,
                           @Param("chapterId") String chapterId,
                        @Param("keyword") String keyword);

}
